home *** CD-ROM | disk | FTP | other *** search
/ Tech Arsenal 1 / Tech Arsenal (Arsenal Computer).ISO / tek-13 / tde3.zip / CFGFILE.H < prev    next >
Text File  |  1993-06-05  |  19KB  |  513 lines

  1.  
  2.  
  3. /*
  4.  * Group the list of available keys alphabetically.
  5.  */
  6. CONFIG_DEFS valid_keys[AVAIL_KEYS] = {
  7. /*  available key      index into file   */
  8.    { "a+\'",                     40 },
  9.    { "a+-",                     130 },
  10.    { "a+0",                     129 },
  11.    { "a+1",                     120 },
  12.    { "a+2",                     121 },
  13.    { "a+3",                     122 },
  14.    { "a+4",                     123 },
  15.    { "a+5",                     124 },
  16.    { "a+6",                     125 },
  17.    { "a+7",                     126 },
  18.    { "a+8",                     127 },
  19.    { "a+9",                     128 },
  20.    { "a+;",                      39 },
  21.    { "a+<",                      51 },
  22.    { "a+=",                     131 },
  23.    { "a+>",                      52 },
  24.    { "a+?",                      53 },
  25.    { "a+[",                      26 },
  26.    { "a+]",                      27 },
  27.    { "a+a",                      30 },
  28.    { "a+b",                      48 },
  29.    { "a+backspace",              14 },
  30.    { "a+c",                      46 },
  31.    { "a+d",                      32 },
  32.    { "a+e",                      18 },
  33.    { "a+enter",                  28 },
  34.    { "a+esc",                     1 },
  35.    { "a+f",                      33 },
  36.    { "a+f1",                    104 },
  37.    { "a+f10",                   113 },
  38.    { "a+f11",                   139 },
  39.    { "a+f12",                   140 },
  40.    { "a+f2",                    105 },
  41.    { "a+f3",                    106 },
  42.    { "a+f4",                    107 },
  43.    { "a+f5",                    108 },
  44.    { "a+f6",                    109 },
  45.    { "a+f7",                    110 },
  46.    { "a+f8",                    111 },
  47.    { "a+f9",                    112 },
  48.    { "a+g",                      34 },
  49.    { "a+grey/",                 164 },
  50.    { "a+greydel",               163 },
  51.    { "a+greydown",              160 },
  52.    { "a+greyend",               159 },
  53.    { "a+greyenter",             166 },
  54.    { "a+greyhome",              151 },
  55.    { "a+greyins",               162 },
  56.    { "a+greyleft",              155 },
  57.    { "a+greypgdn",              161 },
  58.    { "a+greypgup",              153 },
  59.    { "a+greyright",             157 },
  60.    { "a+greyup",                152 },
  61.    { "a+h",                      35 },
  62.    { "a+i",                      23 },
  63.    { "a+j",                      36 },
  64.    { "a+k",                      37 },
  65.    { "a+l",                      38 },
  66.    { "a+m",                      50 },
  67.    { "a+n",                      49 },
  68.    { "a+o",                      24 },
  69.    { "a+p",                      25 },
  70.    { "a+q",                      16 },
  71.    { "a+r",                      19 },
  72.    { "a+s",                      31 },
  73.    { "a+t",                      20 },
  74.    { "a+tab",                   165 },
  75.    { "a+u",                      22 },
  76.    { "a+v",                      47 },
  77.    { "a+w",                      17 },
  78.    { "a+x",                      45 },
  79.    { "a+y",                      21 },
  80.    { "a+z",                      44 },
  81.    { "a+~",                      41 },
  82.    { "backspace",                 9 },
  83.    { "c+@",                     174 },
  84.    { "c+[",                     201 },
  85.    { "c+\\",                    202 },
  86.    { "c+]",                     203 },
  87.    { "c+^",                     204 },
  88.    { "c+_",                     205 },
  89.    { "c+a",                     175 },
  90.    { "c+b",                     176 },
  91.    { "c+backspace",              11 },
  92.    { "c+c",                     177 },
  93.    { "c+center",                143 },
  94.    { "c+d",                     178 },
  95.    { "c+del",                   147 },
  96.    { "c+down",                  145 },
  97.    { "c+e",                     179 },
  98.    { "c+end",                   117 },
  99.    { "c+enter",                   8 },
  100.    { "c+esc",                     4 },
  101.    { "c+f",                     180 },
  102.    { "c+f1",                     94 },
  103.    { "c+f10",                   103 },
  104.    { "c+f11",                   137 },
  105.    { "c+f12",                   138 },
  106.    { "c+f2",                     95 },
  107.    { "c+f3",                     96 },
  108.    { "c+f4",                     97 },
  109.    { "c+f5",                     98 },
  110.    { "c+f6",                     99 },
  111.    { "c+f7",                    100 },
  112.    { "c+f8",                    101 },
  113.    { "c+f9",                    102 },
  114.    { "c+g",                     181 },
  115.    { "c+grey*",                 150 },
  116.    { "c+grey+",                 144 },
  117.    { "c+grey-",                 142 },
  118.    { "c+grey/",                 149 },
  119.    { "c+greyenter",              43 },
  120.    { "c+h",                     182 },
  121.    { "c+home",                  119 },
  122.    { "c+i",                     183 },
  123.    { "c+ins",                   146 },
  124.    { "c+j",                     184 },
  125.    { "c+k",                     185 },
  126.    { "c+l",                     186 },
  127.    { "c+left",                  115 },
  128.    { "c+m",                     187 },
  129.    { "c+n",                     188 },
  130.    { "c+o",                     189 },
  131.    { "c+p",                     190 },
  132.    { "c+pgdn",                  118 },
  133.    { "c+pgup",                  132 },
  134.    { "c+q",                     191 },
  135.    { "c+r",                     192 },
  136.    { "c+right",                 116 },
  137.    { "c+s",                     193 },
  138.    { "c+t",                     194 },
  139.    { "c+tab",                   148 },
  140.    { "c+u",                     195 },
  141.    { "c+up",                    141 },
  142.    { "c+v",                     196 },
  143.    { "c+w",                     197 },
  144.    { "c+x",                     198 },
  145.    { "c+y",                     199 },
  146.    { "c+z",                     200 },
  147.    { "center",                   76 },
  148.    { "del",                      83 },
  149.    { "down",                     80 },
  150.    { "end",                      79 },
  151.    { "enter",                     6 },
  152.    { "esc",                       2 },
  153.    { "f1",                       59 },
  154.    { "f10",                      68 },
  155.    { "f11",                     133 },
  156.    { "f12",                     134 },
  157.    { "f2",                       60 },
  158.    { "f3",                       61 },
  159.    { "f4",                       62 },
  160.    { "f5",                       63 },
  161.    { "f6",                       64 },
  162.    { "f7",                       65 },
  163.    { "f8",                       66 },
  164.    { "f9",                       67 },
  165.    { "grey+",                   168 },
  166.    { "grey-",                   167 },
  167.    { "greyenter",                29 },
  168.    { "home",                     71 },
  169.    { "ins",                      82 },
  170.    { "left",                     75 },
  171.    { "pgdn",                     81 },
  172.    { "pgup",                     73 },
  173.    { "right",                    77 },
  174.    { "s+a+\'",                  242 },
  175.    { "s+a+-",                   216 },
  176.    { "s+a+0",                   215 },
  177.    { "s+a+1",                   206 },
  178.    { "s+a+2",                   207 },
  179.    { "s+a+3",                   208 },
  180.    { "s+a+4",                   209 },
  181.    { "s+a+5",                   210 },
  182.    { "s+a+6",                   211 },
  183.    { "s+a+7",                   212 },
  184.    { "s+a+8",                   213 },
  185.    { "s+a+9",                   214 },
  186.    { "s+a+;",                   241 },
  187.    { "s+a+<",                   253 },
  188.    { "s+a+=",                   217 },
  189.    { "s+a+>",                   254 },
  190.    { "s+a+?",                   255 },
  191.    { "s+a+[",                   228 },
  192.    { "s+a+]",                   229 },
  193.    { "s+a+a",                   232 },
  194.    { "s+a+b",                   250 },
  195.    { "s+a+c",                   248 },
  196.    { "s+a+d",                   234 },
  197.    { "s+a+e",                   220 },
  198.    { "s+a+f",                   235 },
  199.    { "s+a+g",                   236 },
  200.    { "s+a+h",                   237 },
  201.    { "s+a+i",                   225 },
  202.    { "s+a+j",                   238 },
  203.    { "s+a+k",                   239 },
  204.    { "s+a+l",                   240 },
  205.    { "s+a+m",                   252 },
  206.    { "s+a+n",                   251 },
  207.    { "s+a+o",                   226 },
  208.    { "s+a+p",                   227 },
  209.    { "s+a+q",                   218 },
  210.    { "s+a+r",                   221 },
  211.    { "s+a+s",                   233 },
  212.    { "s+a+t",                   222 },
  213.    { "s+a+u",                   224 },
  214.    { "s+a+v",                   249 },
  215.    { "s+a+w",                   219 },
  216.    { "s+a+x",                   247 },
  217.    { "s+a+y",                   223 },
  218.    { "s+a+z",                   246 },
  219.    { "s+a+~",                   243 },
  220.    { "s+backspace",              10 },
  221.    { "s+c+left",                170 },
  222.    { "s+c+right",               171 },
  223.    { "s+enter",                   7 },
  224.    { "s+esc",                     3 },
  225.    { "s+f1",                     84 },
  226.    { "s+f10",                    93 },
  227.    { "s+f11",                   135 },
  228.    { "s+f12",                   136 },
  229.    { "s+f2",                     85 },
  230.    { "s+f3",                     86 },
  231.    { "s+f4",                     87 },
  232.    { "s+f5",                     88 },
  233.    { "s+f6",                     89 },
  234.    { "s+f7",                     90 },
  235.    { "s+f8",                     91 },
  236.    { "s+f9",                     92 },
  237.    { "s+greyenter",              42 },
  238.    { "s+tab",                    15 },
  239.    { "tab",                      12 },
  240.    { "up",                       72 }
  241. };
  242.  
  243.  
  244. /*
  245.  * sorted alphabetic list of functions that keys may be assigned to.
  246.  *  add 1 to NUM_FUNC so users may use either Macro or Playback to
  247.  *  define macros.  Macro and Playback are both assigned to 128.
  248.  */
  249.  
  250. CONFIG_DEFS valid_func[NUM_FUNC+1] = {
  251.    { "AbortCommand",                 63 },
  252.    { "AddLine",                      59 },
  253.    { "BackSpace",                    53 },
  254.    { "BackTab",                      51 },
  255.    { "BegNextLine",                   4 },
  256.    { "BegOfLine",                    20 },
  257.    { "BlockCompressTabs",            91 },
  258.    { "BlockEmailReply",              98 },
  259.    { "BlockExpandTabs",              90 },
  260.    { "BlockFixUUE",                  97 },
  261.    { "BlockIndentTabs",              92 },
  262.    { "BlockLowerCase",               95 },
  263.    { "BlockRot13",                   96 },
  264.    { "BlockStripHiBit",              99 },
  265.    { "BlockToFile",                  88 },
  266.    { "BlockTrimTrailing",            93 },
  267.    { "BlockUpperCase",               94 },
  268.    { "BotOfScreen",                  17 },
  269.    { "CenterJustify",                49 },
  270.    { "CenterLine",                   23 },
  271.    { "CenterWindow",                 22 },
  272.    { "CharLeft",                      8 },
  273.    { "CharRight",                     7 },
  274.    { "ClearAllMacros",              129 },
  275.    { "CopyBlock",                    82 },
  276.    { "DateTimeStamp",               101 },
  277.    { "DefineDiff",                   74 },
  278.    { "DefineGrep",                  109 },
  279.    { "DefineRegXGrep",              137 },
  280.    { "DelEndOfLine",                 57 },
  281.    { "DeleteBlock",                  86 },
  282.    { "DeleteChar",                   54 },
  283.    { "DeleteLine",                   56 },
  284.    { "DirList",                     103 },
  285.    { "DuplicateLine",                62 },
  286.    { "EditFile",                    102 },
  287.    { "EditNextFile",                108 },
  288.    { "EndOfFile",                    15 },
  289.    { "EndOfLine",                    19 },
  290.    { "File",                        104 },
  291.    { "FillBlock",                    80 },
  292.    { "FindBackward",                 68 },
  293.    { "FindForward",                  67 },
  294.    { "FindRegX",                    134 },
  295.    { "FormatParagraph",              45 },
  296.    { "FormatText",                   46 },
  297.    { "GotoMark1",                   122 },
  298.    { "GotoMark2",                   123 },
  299.    { "GotoMark3",                   124 },
  300.    { "Help",                          1 },
  301.    { "HorizontalScreenLeft",         25 },
  302.    { "HorizontalScreenRight",        24 },
  303.    { "JoinLine",                     61 },
  304.    { "JumpToLine",                   21 },
  305.    { "KopyBlock",                    83 },
  306.    { "LeftJustify",                  47 },
  307.    { "LineDown",                      5 },
  308.    { "LineUp",                        6 },
  309.    { "LoadMacro",                   128 },
  310.    { "Macro",                       126 },
  311.    { "MarkBox",                      76 },
  312.    { "MarkLine",                     77 },
  313.    { "MarkStream",                   78 },
  314.    { "MoveBlock",                    84 },
  315.    { "NextDirtyLine",               132 },
  316.    { "NextHiddenWindow",            118 },
  317.    { "NextLine",                      3 },
  318.    { "NextWindow",                  115 },
  319.    { "Null",                          0 },
  320.    { "NumberBlock",                  81 },
  321.    { "OverlayBlock",                 85 },
  322.    { "PanDn",                        29 },
  323.    { "PanLeft",                      10 },
  324.    { "PanRight",                      9 },
  325.    { "PanUp",                        28 },
  326.    { "ParenBalance",                 52 },
  327.    { "Pause",                       130 },
  328.    { "PlayBack",                    126 },
  329.    { "PrevDirtyLine",               133 },
  330.    { "PreviousWindow",              116 },
  331.    { "PrintBlock",                   89 },
  332.    { "Quit",                        131 },
  333.    { "RecordMacro",                 125 },
  334.    { "RedrawScreen",                111 },
  335.    { "RepeatDiff",                   75 },
  336.    { "RepeatFindBackward1",          71 },
  337.    { "RepeatFindBackward2",          72 },
  338.    { "RepeatFindForward1",           69 },
  339.    { "RepeatFindForward2",           70 },
  340.    { "RepeatFindRegX",              135 },
  341.    { "RepeatFindRegXBackward",      136 },
  342.    { "RepeatGrep",                  110 },
  343.    { "ReplaceString",                73 },
  344.    { "RightJustify",                 48 },
  345.    { "Rturn",                         2 },
  346.    { "Save",                        105 },
  347.    { "SaveAs",                      106 },
  348.    { "SaveMacro",                   127 },
  349.    { "ScreenDown",                   13 },
  350.    { "ScreenUp",                     14 },
  351.    { "ScrollDnLine",                 26 },
  352.    { "ScrollUpLine",                 27 },
  353.    { "SetFileAttributes",           107 },
  354.    { "SetLeftMargin",                42 },
  355.    { "SetMark1",                    119 },
  356.    { "SetMark2",                    120 },
  357.    { "SetMark3",                    121 },
  358.    { "SetParagraphMargin",           44 },
  359.    { "SetRightMargin",               43 },
  360.    { "SetTabs",                      41 },
  361.    { "SizeWindow",                  112 },
  362.    { "SortBoxBlock",                100 },
  363.    { "SplitHorizontal",             113 },
  364.    { "SplitLine",                    60 },
  365.    { "SplitVertical",               114 },
  366.    { "StreamDeleteChar",             55 },
  367.    { "SwapBlock",                    87 },
  368.    { "Tab",                          50 },
  369.    { "ToggleCRLF",                   34 },
  370.    { "ToggleEol",                    37 },
  371.    { "ToggleIndent",                 32 },
  372.    { "ToggleOverWrite",              30 },
  373.    { "ToggleRuler",                  39 },
  374.    { "ToggleSearchCase",             66 },
  375.    { "ToggleSmartTabs",              31 },
  376.    { "ToggleSync",                   38 },
  377.    { "ToggleTabInflate",             40 },
  378.    { "ToggleTrailing",               35 },
  379.    { "ToggleWordWrap",               33 },
  380.    { "ToggleZ",                      36 },
  381.    { "TopOfFile",                    16 },
  382.    { "TopOfScreen",                  18 },
  383.    { "TwoCharKey",                  138 },
  384.    { "UndoDelete",                   65 },
  385.    { "UndoLine",                     64 },
  386.    { "UnMarkBlock",                  79 },
  387.    { "WordDelete",                   58 },
  388.    { "WordLeft",                     12 },
  389.    { "WordRight",                    11 },
  390.    { "ZoomWindow",                  117 }
  391. };
  392.  
  393.  
  394. /*
  395.  * list of color fields sorted alphabetically
  396.  */
  397.  
  398. CONFIG_DEFS valid_colors[NUM_COLORS*2] = {
  399.    { "co80_Blocks",                   4 },
  400.    { "co80_CurLine",                  9 },
  401.    { "co80_DirtyLine",                2 },
  402.    { "co80_EndOfFile",                8 },
  403.    { "co80_FileHeader",               0 },
  404.    { "co80_HelpScreen",               6 },
  405.    { "co80_HilitedFile",             12 },
  406.    { "co80_MessageLine",              5 },
  407.    { "co80_ModeLine",                 3 },
  408.    { "co80_Overscan",                13 },
  409.    { "co80_Ruler",                   10 },
  410.    { "co80_RulerPointer",            11 },
  411.    { "co80_Text",                     1 },
  412.    { "co80_Wrapped",                  7 },
  413.    { "mono_Blocks",                   4 },
  414.    { "mono_CurLine",                  9 },
  415.    { "mono_DirtyLine",                2 },
  416.    { "mono_EndOfFile",                8 },
  417.    { "mono_FileHeader",               0 },
  418.    { "mono_HelpScreen",               6 },
  419.    { "mono_HilitedFile",             12 },
  420.    { "mono_MessageLine",              5 },
  421.    { "mono_ModeLine",                 3 },
  422.    { "mono_Overscan",                13 },
  423.    { "mono_Ruler",                   10 },
  424.    { "mono_RulerPointer",            11 },
  425.    { "mono_Text",                     1 },
  426.    { "mono_Wrapped",                  7 }
  427. };
  428.  
  429.  
  430. /*
  431.  * list of editor modes sorted alphabetically
  432.  */
  433.  
  434. CONFIG_DEFS valid_modes[NUM_MODES] = {
  435.    { "Backups",             Backup      },
  436.    { "CaseIgnore",          Ignore      },
  437.    { "CaseMatch",           Match       },
  438.    { "ControlZ",            Write_Z     },
  439.    { "CursorStyle",         Size        },
  440.    { "DateStyle",           Date        },
  441.    { "DisplayEndOfLine",    Eol         },
  442.    { "EndOfLineStyle",      Crlf        },
  443.    { "IndentMode",          Ind         },
  444.    { "InflateTabs",         InflateTabs },
  445.    { "InitialCaseMode",     Initcase    },
  446.    { "InsertMode",          Ins         },
  447.    { "JustifyRightMargin",  JustRM      },
  448.    { "LeftMargin",          Left        },
  449.    { "LTabSize",            LTAB        },
  450.    { "ParagraphMargin",     Para        },
  451.    { "PTabSize",            PTAB        },
  452.    { "RightMargin",         Right       },
  453.    { "Ruler",               Ruler       },
  454.    { "SmartTabMode",        Smart       },
  455.    { "TimeStyle",           Time        },
  456.    { "TrimTrailingBlanks",  Trim        },
  457.    { "WordWrapMode",        WW          }
  458. };
  459.  
  460.  
  461.  
  462. CONFIG_DEFS off_on[2] = {
  463.    { "Off",   0 },
  464.    { "On",    1 }
  465. };
  466.  
  467.  
  468. CONFIG_DEFS valid_z[2] = {
  469.    { "No_Z",     0 },
  470.    { "Write_Z",  1 }
  471. };
  472.  
  473.  
  474. CONFIG_DEFS valid_cursor[2] = {
  475.    { "Large",   1 },
  476.    { "Small",   0 }
  477. };
  478.  
  479.  
  480. CONFIG_DEFS valid_crlf[2] = {
  481.    { "CRLF",   1 },
  482.    { "LF",     2 }
  483. };
  484.  
  485.  
  486. CONFIG_DEFS valid_wraps[3] = {
  487.    { "DynamicWrap",   2 },
  488.    { "FixedWrap",     1 },
  489.    { "Off",           0 }
  490. };
  491.  
  492.  
  493. CONFIG_DEFS valid_dates[6] = {
  494.    { "DD_MM_YY",     1 },
  495.    { "DD_MM_YYYY",   4 },
  496.    { "MM_DD_YY",     0 },
  497.    { "MM_DD_YYYY",   3 },
  498.    { "YY_MM_DD",     2 },
  499.    { "YYYY_MM_DD",   5 }
  500. };
  501.  
  502.  
  503. CONFIG_DEFS valid_times[2] = {
  504.    { "12_Hour",     0 },
  505.    { "24_Hour",     1 }
  506. };
  507.  
  508.  
  509. CONFIG_DEFS init_case_modes[2] = {
  510.    { "IGNORE",  1 },
  511.    { "MATCH",   2 }
  512. };
  513.